<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib uri="http://www.springframework.org/security/tags" prefix="sec" %>
<%@include file="include-head.jsp"%>

<body>
<%@include file="include-nav.jsp"%>

<div class="container-fluid">
    <div class="row">
        <%@include file="include-sidebar.jsp"%>
    </div>
    <div class="col-sm-9 col-sm-offset-3 col-md-10 col-md-offset-2 main">
        <ol class="breadcrumb">
            <li><a href="/admin/to/main/page.html">首页</a></li>
            <li><a href="/admin/query/for/search">数据列表</a></li>
            <li class="active">新增</li>
        </ol>
        <div class="panel panel-default">
            <div class="panel-heading">表单数据<div style="float:right;cursor:pointer;" data-toggle="modal" data-target="#myModal"><i class="glyphicon glyphicon-question-sign"></i></div></div>
            <div class="panel-body">
                <form role="form" action="/admin/save" method="post">
                    <div class="form-group">
                        <label for="loginacct">登陆账号</label>
                        <input type="text" class="form-control" name="loginacct" id="loginacct" placeholder="请输入登陆账号">
                    </div>
                    <div class="form-group">
                        <label for="userpswd">登陆密码</label>
                        <input type="text" class="form-control" name="userpswd" id="userpswd" placeholder="请输入登陆密码">
                    </div>
                    <div class="form-group">
                        <label for="username">用户名称</label>
                        <input type="text" class="form-control" name="username" id="username" placeholder="请输入用户名称">
                    </div>
                    <div class="form-group">
                        <label for="email">邮箱地址</label>
                        <input type="email" class="form-control" name="email" id="email" placeholder="请输入邮箱地址">
                        <p class="help-block label label-warning">请输入合法的邮箱地址, 格式为： xxxx@xxxx.com</p>
                    </div>
                    <button type="submit" class="btn btn-success"><i class="glyphicon glyphicon-plus"></i> 新增</button>
                    <button type="reset" class="btn btn-danger"><i class="glyphicon glyphicon-refresh"></i> 重置</button>
                </form>
            </div>
        </div>

    </div>
</div>
</div>
<script src="jquery/jquery-2.1.1.min.js"></script>
<script src="bootstrap/js/bootstrap.min.js"></script>
<script src="script/docs.min.js"></script>
<script type="text/javascript">
    $(function () {
        $(".list-group-item").click(function(){
            if ( $(this).find("ul") ) {
                $(this).toggleClass("tree-closed");
                if ( $(this).hasClass("tree-closed") ) {
                    $("ul", this).hide("fast");
                } else {
                    $("ul", this).show("fast");
                }
            }
        });
    });
</script>
</body>
</html>
